import request from '@/utils/request'
export const getVerifyCode = (data) => {
  return request({
    url: '/api/Monite/SendVerifyCode',
    method: 'GET',
    data
  })
}
export function getApiToken(data) {

  return request({
    url: '/api/Basic/GetToken',
    method: 'get',
    data
  })
}
// 获取功能权限
export function getPermission(data) {
  return request({
    url: '/api/Basic/GetPermissionStruct',
    method: 'GET',
    data
  })
}
// 用户登录
export function login(data) {
  return request({
    url: '/api/Monite/MonitorLogin',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data
  })
}
// 用户退出
export function Logout(data) {
  return request({
    url: '/api/Monite/Logout',
    method: 'post',
    data
  })
}

